﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset='UTF-8'" />
<title>LODOP的使用</title>
<script language="javascript" src="<%=path%>/js/schedule/CheckActivX.js"></script>
<object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
</object> 
</head>
<body>
<script language="javascript">CheckLodop();</script>
<script language="javascript" type="text/javascript">   
	function Preview() {		
		CreatePrintPage();
	  	LODOP.PREVIEW();		
	};
	function Setup() {		
		CreatePrintPage();
		LODOP.PRINT_SETUP();		
	};
	function Design() {		
		CreatePrintPage();
		LODOP.PRINT_DESIGN();		
	};	
	function PrintOneURL(strID){
		LODOP.PRINT_INIT("打印插件功能演示_Lodop功能_按网址打印");
		LODOP.ADD_PRINT_URL(30,20,746,509,document.getElementById(strID).value);
		LODOP.SET_PRINT_STYLEA(1,"HOrient",3);
		LODOP.SET_PRINT_STYLEA(1,"VOrient",3);
		LODOP.PREVIEW();			
	};	
	function CreatePrintPage() {
		LODOP.PRINT_INIT("打印插件功能演示_Lodop功能_自定义纸张");
		LODOP.SET_PRINT_PAGESIZE(1,1380,880,"");
		LODOP.SET_PRINT_STYLE("FontColor",16711680);
		LODOP.ADD_PRINT_RECT(62,16,474,217,0,1);
		LODOP.ADD_PRINT_TEXT(15,137,157,25,"交通银行（      ）");
		LODOP.SET_PRINT_STYLEA(2,"FontName","隶书");
		LODOP.SET_PRINT_STYLEA(2,"FontSize",11);
		LODOP.SET_PRINT_STYLEA(2,"FontColor",0);
		LODOP.ADD_PRINT_TEXT(41,213,100,20,"2008年11月9日");
		LODOP.ADD_PRINT_TEXT(17,281,100,20,"个人业务受理书");
		LODOP.SET_PRINT_STYLEA(4,"FontColor",0);
		LODOP.ADD_PRINT_TEXT(75,37,431,20,"机构109110 流水9236703415 交易代码010110");
		LODOP.ADD_PRINT_TEXT(102,37,431,20,"个人网银用户签约成功！");
		LODOP.ADD_PRINT_TEXT(129,37,431,20,"网点名称：东城分行营业部");
		LODOP.ADD_PRINT_TEXT(156,37,431,20,"主卡卡号：10101010101010");
		LODOP.ADD_PRINT_TEXT(183,37,431,20,"客户姓名：郭德刚");
		LODOP.ADD_PRINT_TEXT(212,37,431,20,"登陆方式：用户名登陆");
		LODOP.ADD_PRINT_TEXT(17,218,60,20,"东城分行");
		LODOP.ADD_PRINT_TEXT(249,169,221,20,"以上内容已核实确认无误，客户签名：");
		LODOP.ADD_PRINT_TEXT(106,493,23,127,"第二联客户留联");
		LODOP.SET_PRINT_STYLEA(13,"FontColor",0);
		LODOP.ADD_PRINT_TEXT(284,21,74,20,"授权员");
		LODOP.SET_PRINT_STYLEA(14,"FontColor",0);
		LODOP.ADD_PRINT_TEXT(284,200,74,20,"复核员");
		LODOP.SET_PRINT_STYLEA(15,"FontColor",0);
		LODOP.ADD_PRINT_TEXT(284,346,74,20,"经办员");
		LODOP.SET_PRINT_STYLEA(16,"FontColor",0);

	};	
</script> 
<p><input type="button" value="打印预览" name="B3"  onclick="Preview()">
<input type="button" value="打印维护" name="B3" onclick="Setup()">                                          
<input type="button" value="打印设计" name="B3" onclick="Design()"></p>                                          
<p>
<input type="text" id="T1" size="54" value="http://www.baidu.com/s?wd=lodop">
<a href="javascript:PrintOneURL('T1');">预览打印</a>其结果<p>2、在百度上搜“Lodop”的URL：<br> 
　</p>

</body>
</html>
